#!/usr/bin/env  python



import   time
timestamp =   time.time()
#1460448164.69
print  timestamp


localtime = time.localtime(timestamp)
#time.struct_time(tm_year=2016, tm_mon=4, tm_mday=12, tm_hour=16, tm_min=2, tm_sec=44, tm_wday=1, tm_yday=103, tm_isdst=0)
print   localtime


format_time =  time.strftime("%Y-%m-%d %H:%M:%S",localtime)
# 2016-04-12 16:02:44
print format_time


date_time = time.strftime("%Y-%m-%d",time.localtime(time.time()))
#2016-04-12
print date_time

time_time = time.strftime("%H:%M:%S",time.localtime(time.time()))
#16:05:10
print time_time